package com.mhy.ssm.mapper;

import com.mhy.ssm.pojo.User2;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.SelectKey;

public interface User2Mapper {

    @Insert("insert into user2 values (#{id}, #{username})")
    @SelectKey(statement = "select uuid()", before = true, keyProperty = "id", resultType = String.class)
    Integer insert(User2 user);
}
